gl: Fixed clipped offscreen rendering
authorMatthias Clasen <mclasen@redhat.com>
Wed, 10 Feb 2021 01:28:42 +0000 (20:28 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Wed, 10 Feb 2021 03:43:15 +0000 (22:43 -0500)
commitdff2aa20ff33d84a5b7320a9506ad19165251f7d
tree2e5edbca4690c359039e0f1e12750d2c30645a93
parentdae42c8f55b53c7d2b0235a4fb8e622e422c6099
gl: Fixed clipped offscreen rendering

When we are rendering a texture node to an offscreen,
and we have a clip, we must force the offscreen rendering.
Otherwise, the code will notice: Hey, it already is a texture
node, so no need to render it to a texture again. But when
clipping is involved, that is exactly what we want to do.

Testcase included.

Fixes: #3651
gsk/gl/gskglrenderer.c
testsuite/gsk/compare/rounded-clip-in-clip-3d.node [new file with mode: 0644]
testsuite/gsk/compare/rounded-clip-in-clip-3d.png [new file with mode: 0644]
testsuite/gsk/meson.build